<?php
function sales_cm_form(){
	$form = array();
	
	$form["details"] = array(
		"#type"=>"fieldset",
		"#title"=>t("Details")
	);
	
	$form["details"]["account"] = array(
		"#type"=>"textfield",
		"#title"=>t("Credit Account"),
		"#description"=>t("Please select an account")
	);
	
	$form["details"]["split"] = array(
		"#type"=>"button",
		"#value"=>t("Split Account")
	);
	
	$form["details"]["ref-num"] = array(
		"#type"=>"textfield",
		"#title"=>t("Reference Number")
	);
	
	$form["details"]["date"] = array(
		"#type"=>"textfield",
		"#title"=>t("Date")
	);
	
	$form["details"]["customer"] = array(
		"#type"=>"textfield",
		"#title"=>t("Customer"),
		"#description"=>t("Please select a customer")
	);
	
	$form["details"]["memo"] = array(
		"#type"=>"textfield",
		"#title"=>t("Memo")
	);
	
	$form["details"]["amount"] = array(
		"#type"=>"textfield",
		"#title"=>t("Amount")
	);
	
	$form["invoices"] = array(
		"#type"=>"fieldset",
		"#title"=>t("Invoices")
	);
	
	return $form;
}